#include "window.h"
#include "windowImp.h"

#include <iostream>

using namespace std;

void Window::setImp(WindowImp* pImp)
{
	m_pImp = pImp;
}

WindowImp* Window::getImp()
{
	return m_pImp;
}

void ClassicalWindow::drawText()
{
	cout<<"ClassicalWindow\tcalls ";
	m_pImp->drawTextImp();
	cout<<"."<<endl;
}

void ModernWindow::drawText()
{
	cout<<"ModernWindow\tcalls ";
	m_pImp->drawTextImp();
	cout<<"."<<endl;
}
